import event.IEventHandler;

public class main {
    public static void main(String[] args) {

        Deck deck = new Deck();
        deck.NameChanged.add(new IEventHandler<Deck.NameChangedEventArgs>() {
            @Override
            public void eventReceived(Object sender, Deck.NameChangedEventArgs e) {
                System.out.println(e.getName());
            }
        });

        deck.setName("X1XX");
    }
}
